<template>
<!--个人修改-->
  <div id="person_manage">
    <img class="portrait" :src="adminObj.portrait">
    <el-form ref="form" :model="adminObj" label-width="80px" class="person_form">
      <el-form-item label="真实姓名">
        <el-input v-model="adminObj.realName"></el-input>
      </el-form-item>
      <el-form-item label="年龄">
        <el-input v-model="adminObj.age"></el-input>
      </el-form-item>
      <el-form-item label="昵称">
        <el-input v-model="adminObj.nickName"></el-input>
      </el-form-item>
      <el-form-item label="新密码">
        <el-input type="password" v-model="adminObj.password"></el-input>
      </el-form-item>
      <el-form-item label="确认新密码">
        <el-input type="password" v-model="adminObj.againPassword"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">确认修改</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "PersonalManage",
  data(){
    return{
      adminObj:{
        realName:"刘一",
        age:20,
        nickName:"liuyi",
        password:"123",
        againPassword:"123",
        portrait:"https://tse2-mm.cn.bing.net/th/id/OIP-C.3dEvA4aEcT2P79gRTAftnwHaHa?pid=ImgDet&rs=1"
      }
    }
  },
  methods:{
    onSubmit(){

    }
  }
}
</script>

<style scoped>
#person_manage{
  display: flex;
}
.person_form{
  width: 70%;
}
.portrait{
  width: 470px;
}
</style>
